//导入base.less
@import url(base.less);
//声明基准值变量
@baseSize: 3.75vmin;

* {
    padding: 0;
    margin: 0;
}

//头部模块
.suspension {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #fff;
    .m-navbar {
        display: flex;
        justify-content: space-between;
        padding: 0 (12 / @baseSize) 0 (18 / @baseSize);
        height: (44 / @baseSize);
        align-items: center;
        .b-img-inner {
            width: (66 / @baseSize);
            height: (30 / @baseSize);
        }
        .right {
            display: flex;
            align-items: center;

            .search {
                i.bi-search {
                    font-size: (22 / @baseSize);
                    color: #ccc;
                }
            }

            .face {
                overflow: hidden;
                width: (24 / @baseSize);
                height: (24 / @baseSize);
                border-radius: 50%;
                margin: 0 (20 / @baseSize);

                img {
                    object-fit: cover; // 覆盖整个盒子，超出部分裁切；也可用 fill（变形填充）
                }
            }

            .app-btn {
                width: (72 / @baseSize);
                height: (24 / @baseSize);
            }
        }
    }
    // 频道模块
    .channel-menu {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: (40 / @baseSize);
        border-bottom: (1 / @baseSize) solid #e7e7e7;
    }

    .tabs {
        overflow: hidden;
        flex: 1;

        .tabs-list {
            display: flex; 
            a {
                height: (40 / @baseSize);
                line-height: (40 / @baseSize);
                padding: 0 (16 / @baseSize);
                font-size: (14 / @baseSize);
                //文字不换行
                white-space: nowrap;
            }

            .line {
                position: absolute;
                left: (16 / @baseSize);
                bottom: (-1 / @baseSize);
                width: (28 / @baseSize);
                height: (2 / @baseSize);
                background-color: #fb7299;
            }
        }
    }

    .after {
        width: (40 / @baseSize);
        height: (40 / @baseSize);
        color: #ccc;
        line-height: (40 / @baseSize);
        text-align: center;
        i {
            font-size: (20 / @baseSize);
        }
    }
}

//主体部位
.m-home {
    padding: (85 / @baseSize) (5 / @baseSize) 0;
    .video-list {
        display: flex;
        //强制换行
        flex-wrap: wrap;

        .video-item {
            width: 50%;
            padding: (8 / @baseSize) (5 / @baseSize);

            .card {
                position: relative;
                height: (97 / @baseSize);

                .count {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    position: absolute;
                    left: 0;
                    bottom: 0;
                    padding: 0 (5 / @baseSize);
                    width: 100%;
                    height: (27 / @baseSize);
                    background-image: linear-gradient(transparent,rgba(0,0,0,.7));

                    span {
                        font-size: (12 / @baseSize);
                        color: #fff;
                    }
                }
            }

            .title {
                margin-top: (5 / @baseSize);
                font-size: (12 / @baseSize);
            }
        }
    }
}

//底部模块
.app {
    position: fixed;
    left: 0;
    bottom: (30 / @baseSize);
    width: 100%;
    height: (38 / @baseSize);

    .btn-app {
        margin: 0 (20 / @baseSize);
        height: (38 / @baseSize);
        background-color: #fb7299;
        border-radius: (19 / @baseSize);
        text-align: center;
        line-height: (38 / @baseSize);
        color: #fff;
        font-size: (14 / @baseSize);

        .box{
            display: inline-block;
            width: (40 / @baseSize);
            height: (20 / @baseSize);
        }
    }
}